package com.example.hostsys.dao;

import com.example.hostsys.entity.Student;
import com.example.hostsys.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StuDao extends JpaRepository<Student,Integer> {
    Student findByUser(User user);
}
